#include "utils/config_struct.h"

namespace project_template {

ImageVisualizationConfig LoadImageVisualizationConfig(
    const YAML::Node &_yaml_node) {
  ImageVisualizationConfig config;

  utils::YamlReadAbort<std::string>(_yaml_node, "rgb_image_topic",
                                    config.rgb_image_topic);
  utils::YamlReadAbort<std::string>(_yaml_node, "depth_image_topic", config.depth_image_topic);

  return config;
}

}  // namespace project_template
